#include "stdafx.h"
#include "Task.h"

class CroppedTask: public Task
{
public:
	CroppedTask(int x, int y, double acc, int steps);
	~CroppedTask();

	void solve();
private:
	double* updateR(double* x, double* r, double* f);
	double getBeta(double* h, double* r);
	double* getH(double* h, double* r, double beta);
	double getAlpha(double* h, double* r);
	double* mulA(double* matrix);
	double scalarMul(double* v1, double* v2);
};